/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rpt.bd.cenario;

/**
 *
 * @author Roberto
 */
public class CFiltroGradeBd  extends CFiltroGrade {
    
    protected CPersistenciaBd fPersistenciaBd;
    
    public CFiltroGradeBd(final  CPersistenciaBd aPersistenciaBd) {
        super();
        fPersistenciaBd = aPersistenciaBd;
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    public CEstruturaRegistroBd getEstruturaRegistroBd() {
        return fPersistenciaBd.getEstruturaRegistroBd();
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    public CRegistroBd getRegistroBdAtual() {
        if (getGrade() != null) {
            return ((CGradeBd)getGrade()).getRegistroBdAtual();
        } else {
            return null;
        }
    }
}
